package counter.io;

import counter.info.CounterResultInfo;
import counter.info.FileTypeInfo;

public final class ConsoleOutput {
    private ConsoleOutput() {

    }
    public static void generateConsoleOutput(CounterResultInfo source) {
        System.out.println(source.getRootFolder() + NEW_LINE);

        for (FileTypeInfo fileType : source.getFilesInfo()) {
            System.out.printf("%10s  %6s  %6s\n", fileType.getExtension(), fileType.getFilesNumber(), fileType.getLinesNumber());
        }
    }

    private static final String NEW_LINE = "\n";
}
